#! /bin/sh

# Like success1, but pass normalize output
#  through normalize again

SUCCESS=0
FAIL=0

for tcf in ${srcdir}/success/*.cf; do
    ${NORMALIZE} <${tcf} | ${NORMALIZE} >/dev/null
    if test $? = 0; then
        SUCCESS=`expr $SUCCESS + 1`
    else
        FAIL=`expr $FAIL + 1`
    fi
done

echo "$0: Successes:${SUCCESS} Failures:${FAIL}"
if test $FAIL = 0; then
    exit 0;
else
    exit 99;
fi
